year=int(input())
if year%4==0 and year%100!=0:
    print("%d是闰年"%year)
else:
    if year%400==0:
        print("%d是闰年" % year)
    else:
        print("%d不是闰年"%year)
